/**
 * TODO add initializer to ensure variables are filled
 */
package net.yters.model.agents.actuators.sensors;

import java.util.TreeMap;

import net.yters.model.agents.actuators.ActuatorAgent;
import net.yters.util.Box;

abstract public class SensorAgent extends ActuatorAgent {
	private static final long serialVersionUID = -7925248372904613607L;

	public TreeMap<String, Box> f_observations = new TreeMap<String, Box>();

	public void addBoxedObservation(String name, Box value) {
		addBoxedState(name, value);
		
		f_observations.put(qualifyField(name), value); // TODO this or the following should be removed
		f_parameters.put(qualifyField(name), value); 
	}
}